/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.sys.entity.Area;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业广告积分规则Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkEnterpriseAdvIntegralRule extends DataEntity<HkEnterpriseAdvIntegralRule> {
	
	private static final long serialVersionUID = 1L;
	private String enterpriseId;		// 企业广告id
	private String type;		// 积分类型
	private String integral;		// 积分
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private Area country;		// 国家
	private Area province;		// 省
	private Area city;		// 市
	private Date beginBeginDate;		// 开始 开始时间
	private Date endBeginDate;		// 结束 开始时间
	
	public HkEnterpriseAdvIntegralRule() {
		super();
	}

	public HkEnterpriseAdvIntegralRule(String id){
		super(id);
	}

	@Length(min=1, max=32, message="企业广告id长度必须介于 1 和 32 之间")
	public String getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(String enterpriseId) {
		this.enterpriseId = enterpriseId;
	}
	
	@Length(min=0, max=1, message="积分类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=11, message="积分长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public Area getCountry() {
		return country;
	}

	public void setCountry(Area country) {
		this.country = country;
	}
	
	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}
	
	public Area getCity() {
		return city;
	}

	public void setCity(Area city) {
		this.city = city;
	}
	
	public Date getBeginBeginDate() {
		return beginBeginDate;
	}

	public void setBeginBeginDate(Date beginBeginDate) {
		this.beginBeginDate = beginBeginDate;
	}
	
	public Date getEndBeginDate() {
		return endBeginDate;
	}

	public void setEndBeginDate(Date endBeginDate) {
		this.endBeginDate = endBeginDate;
	}
		
}